package com.yuebao.feign;


import cn.hutool.core.bean.BeanUtil;
import com.fasterxml.jackson.databind.ser.Serializers.Base;
import com.yuebao.model.pojo.Transaction;
import com.yuebao.request.RequestParameter;
import com.yuebao.request.TransactionDTO;
import com.yuebao.result.BaseResponse;
import com.yuebao.result.EntityResponse;
import com.yuebao.utils.JsonUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;

@FeignClient(name = "YUEBAO-transaction-service",path = "/order")
public interface TransactionCloud {
    @PostMapping("/search")
    public TransactionDTO getOrderByOrderNo(@RequestParam("orderNo")  String  orderNo);
    
    @PostMapping("/updateState")
    public BaseResponse updateTransactionState(@RequestParam("orderNo")  String  orderNo,@RequestParam("orderState") String orderState);
}
